﻿#ifndef SPMDataBase_h__
#define SPMDataBase_h__

#pragma once
#include "SPMInterfaceHead.h"


#using "UploadCmmInfm.dll" 
using namespace UploadCmmInfm;

#using "TKEmanDll.dll"
using namespace TKEmanDll;

using namespace System;
using namespace System::Data;


class SPM_INTERFACE_CLASS SPMDataBase :
	public ISPMDataBase
{


public:
	SPMDataBase();
	virtual ~SPMDataBase();

	//基本接口
public:
	//释放对象
	virtual VOID Release(){ delete this; }

	//操作接口
public:
	//查询数据
	virtual bool QueryDBForBarCode(PCTSTR sBarcode, ELECTRODE_BASE &ElectrodeBase);
	//更新数据
	virtual bool UpdateData(LPCTSTR  EleID, double EleXofffset, double EleYofffset, double EleZofffset, bool CMMCheckOK, double XYMaxGAP, double XYMinGAP, double XYAveGAP, double ZMaxGAP, double ZMinGAP, double ZAveGAP);
};

#endif // SPMDataBase_h__
